wait_music = "/usr/local/freeswitch/sounds/zh/wait.wav"
freeswitch.consoleLog("info", "hold.lua is start! \n")

event_json = event:serialize()
api = freeswitch.API()
 -- freeswitch.consoleLog("info","event:"..event_json)
 
 uuid = event:getHeader("Unique-ID")
 freeswitch.consoleLog("info","uuid:"..uuid)

 o_uuid = event:getHeader("Other-Leg-Unique-ID")
 
 if o_uuid ~= nil then
 	freeswitch.consoleLog("info","Other-Leg-Unique-ID:"..o_uuid)

 	channel_name = event:getHeader("Channel-Name")
 	freeswitch.consoleLog("info","channel_name:"..channel_name .."\n")

	-- executeAsync
	api:executeString("uuid_broadcast "..o_uuid.." "..wait_music);
end

